package com.dmap.admin.bo.backgroundv2;

import com.dmap.admin.po.Project;
import com.dmap.base.pojo.BasePojo;

/**
 * \* User: helei
 * \* Date: 24/05/18
 * \* Description:
 * \
 */
public class ProjectBo extends BasePojo {
    private String id;//主键id
    private String appId;//对应的app的id
    private String deviceTypeId;//对应的设备类型id
    private String deviceId;//对应的设备id
    private String companyId;//创建的这条记录是属于那个公司的
    private String companyNumber;//所在公司编号
    private String companyName;//所在公司名称
    private Integer companyType;//公司类型：1.总公司， 2分公司
    private Integer userType;//创建者类型：1.公司管理员，2.部门管理员，3.普通用户
    private String creatorId;//该条记录是由谁创建的
    private String editorId;//最后编辑者id
    private String creatorAccount;//创建者账号
    private String editorAccount;//最后更新者账号
    private Long createTime;//创建时间
    private Long updateTime;//最后更新时间

    private String projectId;//app编号，eg: AP001
    private String projectName;//APP名称
    private String appImageUrl;//APP图片url
    private String typeNumber;//设备类型编号
    private String typeName;//设备类型名称
    private String typeImageUrl;//设备类型的图片url
    private String firmware;//设备固件编号
    private String deviceName;//设备名称
    private String deviceImageUrl;//该设备的图片url

    public ProjectBo(Project project) {
        this.id = project.getId().toString();
        this.appId = project.getAppId().toString();
        this.deviceTypeId = project.getDeviceTypeId().toString();
        this.deviceId = project.getDeviceId().toString();
        this.companyId = project.getCompanyId().toString();
        this.companyNumber = project.getCompanyNumber();
        this.companyName = project.getCompanyName();
        this.companyType = project.getCompanyType();
        this.userType = project.getUserType();
        this.creatorId = project.getCreatorId().toString();
        this.editorId = project.getEditorId().toString();
        this.creatorAccount = project.getCreatorAccount();
        this.editorAccount = project.getEditorAccount();
        this.createTime = project.getCreateTime();
        this.updateTime = project.getUpdateTime();
    }

    public ProjectBo(String id, String appId, String deviceTypeId, String deviceId, String companyId, String companyNumber, String companyName, Integer companyType, Integer userType, String creatorId, String editorId, String creatorAccount, String editorAccount, Long createTime, Long updateTime, String projectId, String projectName, String appImageUrl, String typeNumber, String typeName, String typeImageUrl, String firmware, String deviceName, String deviceImageUrl) {
        this.id = id;
        this.appId = appId;
        this.deviceTypeId = deviceTypeId;
        this.deviceId = deviceId;
        this.companyId = companyId;
        this.companyNumber = companyNumber;
        this.companyName = companyName;
        this.companyType = companyType;
        this.userType = userType;
        this.creatorId = creatorId;
        this.editorId = editorId;
        this.creatorAccount = creatorAccount;
        this.editorAccount = editorAccount;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.projectId = projectId;
        this.projectName = projectName;
        this.appImageUrl = appImageUrl;
        this.typeNumber = typeNumber;
        this.typeName = typeName;
        this.typeImageUrl = typeImageUrl;
        this.firmware = firmware;
        this.deviceName = deviceName;
        this.deviceImageUrl = deviceImageUrl;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getDeviceTypeId() {
        return deviceTypeId;
    }

    public void setDeviceTypeId(String deviceTypeId) {
        this.deviceTypeId = deviceTypeId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCompanyNumber() {
        return companyNumber;
    }

    public void setCompanyNumber(String companyNumber) {
        this.companyNumber = companyNumber;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Integer getCompanyType() {
        return companyType;
    }

    public void setCompanyType(Integer companyType) {
        this.companyType = companyType;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public String getEditorId() {
        return editorId;
    }

    public void setEditorId(String editorId) {
        this.editorId = editorId;
    }

    public String getCreatorAccount() {
        return creatorAccount;
    }

    public void setCreatorAccount(String creatorAccount) {
        this.creatorAccount = creatorAccount;
    }

    public String getEditorAccount() {
        return editorAccount;
    }

    public void setEditorAccount(String editorAccount) {
        this.editorAccount = editorAccount;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getAppImageUrl() {
        return appImageUrl;
    }

    public void setAppImageUrl(String appImageUrl) {
        this.appImageUrl = appImageUrl;
    }

    public String getTypeNumber() {
        return typeNumber;
    }

    public void setTypeNumber(String typeNumber) {
        this.typeNumber = typeNumber;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeImageUrl() {
        return typeImageUrl;
    }

    public void setTypeImageUrl(String typeImageUrl) {
        this.typeImageUrl = typeImageUrl;
    }

    public String getFirmware() {
        return firmware;
    }

    public void setFirmware(String firmware) {
        this.firmware = firmware;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceImageUrl() {
        return deviceImageUrl;
    }

    public void setDeviceImageUrl(String deviceImageUrl) {
        this.deviceImageUrl = deviceImageUrl;
    }
}